//
//  RMMTuiJianRenTableViewCell.m
//  Romomo
//
//  Created by puman on 2017/3/17.
//  Copyright © 2017年 mazegong. All rights reserved.
//

#import "RMMTuiJianRenTableViewCell.h"

@implementation RMMTuiJianRenTableViewCell
{
    UIImageView *_imageView;
    UILabel *_nameLabel;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 5, 50, 50)];
        _imageView.layer.masksToBounds = YES;
        _imageView.layer.cornerRadius = 25;
        [self.contentView addSubview:_imageView];
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(_imageView.right + kRow, 0, kScreenWideth - 90, 60)];
        [self.contentView addSubview:_nameLabel];
        
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(_nameLabel.left, _nameLabel.bottom - 0.5, kScreenWideth - _imageView.right - 10, 0.5)];
        view.backgroundColor = RGBA(221, 221, 221, 1);
        [self.contentView addSubview:view];

    }
    return self;
}
- (void)setDic:(NSDictionary *)dic{
    [_imageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kBaseImageUrl,dic[@"EMP_IMG"]]] placeholderImage:[UIImage imageNamed:@"加载中@3x"]];
    _nameLabel.text = dic[@"EMPLOYEE_NAME"];
 
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
